﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using DataAnnotationsExtensions;

namespace BenzInfo.Hockey.Grenadiers.Models
{
    [Table("Backgrounds")]
    public class Background
    {
        [Key]
        public int Id { get; set; }

        [Required]
        [StringLength(100, MinimumLength = 2)]
        [Display(Name = "DisplayTitleEN", ResourceType = typeof(Resources.Models.Picture))]
        public string TitleEN { get; set; }

        [Required]
        [StringLength(100, MinimumLength = 2)]
        [Display(Name = "DisplayTitleFR", ResourceType = typeof(Resources.Models.Picture))]
        public string TitleFR { get; set; }

        [DataType(DataType.MultilineText)]
        [Display(Name = "DisplayDescriptionEN", ResourceType = typeof(Resources.Models.Picture))]
        public string DescriptionEN { get; set; }

        [DataType(DataType.MultilineText)]
        [Display(Name = "DisplayDescriptionFR", ResourceType = typeof(Resources.Models.Picture))]
        public string DescriptionFR { get; set; }

        [Required]
        [FileExtensions("png|jpg|jpeg|gif")]
        [Display(Name = "DisplayPicture", ResourceType = typeof(Resources.Models.Picture))]
        public string FileName { get; set; }
    }
}